﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _35_C_中base和this
{
    internal class Dog : Animal
    {
        public Dog() : base("dog", 3)
        {
            Console.WriteLine("Dog的无参构造方法");
        }
        public Dog(string name, int age) : this()
        {
            Console.WriteLine("Dog的有参构造方法");
        }
        public override void Show()
        {
            base.Show();
            Console.WriteLine("Dog的show方法");
        }

    }
}
